If I open a term listing (of a vocabulary I did not enable at Taxonomy Filter), I get the following error:

Invalid argument supplied for foreach() in /www/htdocs/XXXXXXXX/sites/all/modules/taxonomy_filter/taxonomy_filter.module on line 221.

Could someone help me, please?

Comments

styro’s picture

I'll look into that bug in when I get a little spare time over the next few days.

To speed things up, could you tell we exactly which submodules you had enabled? And any other taxonomy_filter settings you had configured.

no2e’s picture

Submodules (all ;-)):

  • Taxonomy Filter Core (6.x-1.x-dev)
  • Multi Term
  • Dynamic Tree Menu
  • Count Results
  • Context Menu
  • Cloud Menu

Settings:

  • I created one menu (using the dynamic template).
  • "Listing depth" is set to "Show all levels".
  • At "Result handling" I activated "Hide menu items that don't match any nodes. The menu item can still be shown if child terms match.".
  • Default values at "Advanced"
  • "Vocab mappings":
    • I enabled/combined 6 of my 10 vocabularies.

Now, whenever I open a term listing page (e.g. "taxonomy/term/14") of a vocabulary, that is not enabled, I get that error message. I can remember, that I saw this error at enabled vocabularies, too (for some time), until I created a menu (or enabled some other setting, can't remember anymore). However, after that, the term listings of enabled/combined vocabularies work fine ( = don't show any error).

smithn.nc’s picture

I'm having a similar problem here with one of my vocabularies.

Submodules

  • Taxonomy Filter Core (6.x-1.x-dev)
  • Dynamic Tree Menu
  • Count Results
  • Cloud Menu

The issue appears to happen when a vocab is set to use a menu, but nothing is selected for the same column in the "appears on term listings from." For instance, if I had a taxonomy named 'Subjects', and gave it a filter menu, but then failed to select any filters to show on the Subject listings, the error occurs.

solotandem’s picture

Assigned: Unassigned » solotandem
Status: Active » Needs review

Download tonight's dev release and post back whether this error still occurs.

dhigby’s picture

I was having the same error message, and used the updated dev files.

Fixed!!! Thanks a lot.

FWIIW: Dependant modules I use:
Context Menu, Dynamic Tree Menu, Multi Term

solotandem’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.